package com.atguigu.decorator;

public class Decorator extends Drink{

    private Drink obj;

    public Decorator(Drink obj){
        this.obj = obj;
    }
    @Override
    public float cost() {
        return super.getPrice() + obj.cost();
    }

    public String getDes(){
        return super.getDes() + " && "+obj.getDes();
    }


}
